﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Aj.Core;

public partial class Manager_SysModules : AuthPageBase
{
    protected string mname = "";
    protected DataSet ds = null;
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        try
        {
            mname = QueryParam("mname");

            // 删除
            if (!string.IsNullOrEmpty(QueryParam("d")))
            {
                CustomQuery.SysModule_Delete(QueryParam("d"));
            }
            // 清空
            if (!string.IsNullOrEmpty(QueryParam("e")))
            {
                CustomQuery.SysModule_Empty(QueryParam("e"));
            }

            ds = CustomQuery.SysModule_GetModuleByName(mname);
        }
        catch (Exception ex)
        {
            Utility.WriteErrorLog(ex);
        }
    }
}